<?php
/**
 * Yii bootstrap file.
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @link http://www.yiiframework.com/
 * @copyright Copyright &copy; 2008-2011 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 * @package system
 * @since 1.0
 */
date_default_timezone_set("PRC");
require (dirname ( __FILE__ ) . '/YiiBase.php');

/**
 * Yii is a helper class serving common framework functionalities.
 *
 * It encapsulates {@link YiiBase} which provides the actual implementation.
 * By writing your own Yii class, you can customize some functionalities of YiiBase.
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @package system
 * @since 1.0
 */
class Yii extends YiiBase {

//	public static $classMap=array();

    public static $enableIncludePath=true;

    private static $_aliases=array('system'=>YII_PATH,'zii'=>YII_ZII_PATH); // alias => path
    private static $_imports=array();					// alias => class name or directory
    private static $_includePaths;						// list of include paths
    private static $_app;
    private static $_logger;
    private static $_cacheData=array();

    private static $counterHash = array();
    public static function import($alias, $forceInclude = false) {
        if (isset ( self::$_imports [$alias] )) // previously imported
            return self::$_imports [$alias];

        if (class_exists ( $alias, false ) || interface_exists ( $alias, false ))
            return self::$_imports [$alias] = $alias;

        if (($pos = strrpos ( $alias, '\\' )) !== false) // a class name in PHP 5.3 namespace format
        {
            $namespace = str_replace ( '\\', '.', ltrim ( substr ( $alias, 0, $pos ), '\\' ) );
            if (($path = self::getPathOfAlias ( $namespace )) !== false) {
                $classFile = $path . DIRECTORY_SEPARATOR . substr ( $alias, $pos + 1 ) . '.php';
                if ($forceInclude) {
                    if (is_file ( $classFile ))
                        require ($classFile);
                    else
                        throw new CException ( Yii::t ( 'yii', 'Alias "{alias}" is invalid. Make sure it points to an existing PHP file and the file is readable.', array ('{alias}' => $alias ) ) );
                    self::$_imports [$alias] = $alias;
                } else
                    self::$classMap [$alias] = $classFile;
                return $alias;
            } else
                throw new CException ( Yii::t ( 'yii', 'Alias "{alias}" is invalid. Make sure it points to an existing directory.', array ('{alias}' => $namespace ) ) );
        }

        if (($pos = strrpos ( $alias, '.' )) === false) // a simple class name
        {
            if ($forceInclude && self::autoload ( $alias ))
                self::$_imports [$alias] = $alias;
            return $alias;
        }

        $className = ( string ) substr ( $alias, $pos + 1 );
        $isClass = $className !== '*';

        if ($isClass && (class_exists ( $className, false ) || interface_exists ( $className, false )))
            return self::$_imports [$alias] = $className;

        if (($path = self::getPathOfAlias ( $alias )) !== false) {
            if ($isClass) {
                if ($forceInclude) {
                    if (is_file ( $path . '.php' ))
                        require ($path . '.php');
                    else
                        throw new CException ( Yii::t ( 'yii', 'Alias "{alias}" is invalid. Make sure it points to an existing PHP file and the file is readable.', array ('{alias}' => $alias ) ) );
                    self::$_imports [$alias] = $className;
                } else
                    self::$classMap [$className] = $path . '.php';
                return $className;
            } else // a directory
            {
                if (self::$_includePaths === null) {
                    self::$_includePaths = array_unique ( explode ( PATH_SEPARATOR, get_include_path () ) );
                    if (($pos = array_search ( '.', self::$_includePaths, true )) !== false)
                        unset ( self::$_includePaths [$pos] );
                }
                /*递归include，替代
                 * array_unshift(self::$_includePaths,$path);
                 * */
                $pathArray = self::getCache('Alias_'.$path);
                if($pathArray !== false){
                    self::$_includePaths = array_merge ( self::$_includePaths, $pathArray );
                }
                else{
                    $pathArray = array ();
                    self::getDirPaths ( $path, $pathArray );
                    self::setCache('Alias_'.$path,$pathArray);
                    self::$_includePaths = array_merge ( self::$_includePaths, $pathArray );
                }
                //				array_unshift(self::$_includePaths,$path);
                /**END**/
                if (self::$enableIncludePath && set_include_path ( '.' . PATH_SEPARATOR . implode ( PATH_SEPARATOR, self::$_includePaths ) ) === false)
                    self::$enableIncludePath = false;
                return self::$_imports [$alias] = $path;
            }
        } else
            throw new CException ( Yii::t ( 'yii', 'Alias "{alias}" is invalid. Make sure it points to an existing directory or file.', array ('{alias}' => $alias ) ) );
    }
    /*递归获取目录路径
     * @author wangwenbo
     * */
    public static function getDirPaths($path, &$pathArray) {
        if (preg_match ( '/smarty/i', $path )) { //只要路径包含smarty的，无论大小写，都返回
            return;
        }
        if (is_dir($path) && $handle = opendir ( $path )) {
            $pathArray [] = $path;
            while ( false !== ($file = readdir ( $handle )) ) {
                if ($file != '.' && $file != '..' && $file!='.svn') {
                    if (is_dir ( $path . DIRECTORY_SEPARATOR . $file )) {
                        self::getDirPaths ( $path . DIRECTORY_SEPARATOR . $file, $pathArray );
                    }
                }
            }
        }
    }
    public static function autoload($className) {
        // use include so that the error PHP file may appear
        if (isset ( self::$classMap [$className] ))
            include (self::$classMap [$className]);
        elseif (isset ( self::$_coreClasses [$className] ))
            include (YII_PATH . self::$_coreClasses [$className]);
        else {
            // include class file relying on include_path
            if (strpos ( $className, '\\' ) === false) // class without namespace
            {
                if (self::$enableIncludePath === false) {
                    foreach ( self::$_includePaths as $path ) {
                        $classFile = $path . DIRECTORY_SEPARATOR . $className . '.php';
                        if (is_file ( $classFile )) {
                            include ($classFile);
                            if (YII_DEBUG && basename ( realpath ( $classFile ) ) !== $className . '.php')
                                throw new CException ( Yii::t ( 'yii', 'Class name "{class}" does not match class file "{file}".', array ('{class}' => $className, '{file}' => $classFile ) ) );
                            break;
                        }
                    }
                } else{
                    include ($className . '.php');
                }
            } else // class name with namespace in PHP 5.3
            {
                $namespace = str_replace ( '\\', '.', ltrim ( $className,'\\'));
                if(($path=self::getPathOfAlias($namespace))!==false)
                    include($path.'.php');
                else
                    return false;
            }
            return class_exists($className,false) || interface_exists($className,false);
        }
        return true;
    }

    private static function setCache($key, $value) {
        $cacheFilePath = '/tmp/yii/framework/'. Yii::app()->getId();
        $cacheFile = $cacheFilePath. '/' . md5($key);
        if(!is_dir($cacheFilePath)){
            if(!mkdir($cacheFilePath, 755, true)) {
                return false;
            }    
        }
        // cache for 5 minutes;
        $value['__TIME__'] = time() + 5 * 60;
        @file_put_contents($cacheFile, serialize($value));
        return true;
    }

    private static function getCache($key) {
        if(isset(self::$_cacheData[$key])) {
            return self::$_cacheData[$key];
        }

        $cacheFilePath = '/tmp/yii/framework/'. Yii::app()->getId();
        if(!is_dir($cacheFilePath)){
            return false;
        }
        $cacheFile = $cacheFilePath. '/' . md5($key);
        
        if(!is_file($cacheFile)) {
            return false;
        }

        $data = unserialize(@file_get_contents($cacheFile));
        if($data['__TIME__'] < time()) {
            return false;
        }
        unset($data['__TIME__']);
        self::$_cacheData[$key] = unserialize(@file_get_contents($cacheFile));
        return self::$_cacheData[$key];
    }

	/**
	 * 执行时间日志记录，用于替代beginProfile,应保证$key在嵌套使用中的唯一性
	 * @param String $key 起始时间记录索引
	 */
    public static function beginTimeCount($key){
        self::$counterHash[$key] = microtime(true)*1000;
    }
    /**
     * 执行时间日志记录，用于替代beginProfile,应保证$key在嵌套使用中的唯一性
     * @param String $key 起始时间记录索引
     * @param $msg 日志记录内容，":Time" 为时间间隔替换位置
     * @param $level 日志等级
     * @param $category 日志分类
     */
    public static function endTimeCount($key,$msg = ":Time",$level = CLogger::LEVEL_PROFILE,$category = 'profile'){
        $startTime = self::$counterHash[$key];
        if($startTime){
            $cost = number_format(microtime(true)*1000 - $startTime,2);
            $msg = str_replace(":Time",'['.$cost.'ms]',$key.$msg);
            Yii::log($msg,$level,$category);
        }
    }
    public static function endTimeCountToFile($key,$msg = ":Time",$path = '/data/file.profile.log'){
        $startTime = self::$counterHash[$key];
        if($startTime){
            $cost = number_format(microtime(true)*1000 - $startTime,2);
            $msg = str_replace(":Time",'['.$cost.'ms]',$key.$msg);
            file_put_contents($path,$msg . PHP_EOL,FILE_APPEND);
        }
    }

    /**
     * 开启执行时间性能日志记录，应保证$token在嵌套使用中的唯一性
     * @param String $token 起始时间记录索引
     * @param String $category 重写后不使用该参数
     */
    public static function beginProfile($token,$category = 'application'){
        self::$counterHash[$token] = microtime(true)*1000;
    }
    /**
     * 执行时间性能日志记录，应保证$token在嵌套使用中的唯一性
     * @param String $token 起始时间记录索引，当$token中含有“:Time”时，对应替换为消耗时间，不含有“:Time”时，在$token后追加
     * @param String $category log分类
     */
    public static function endProfile($token,$category = 'application',$params = null){
        $startTime = self::$counterHash[$token];
        if($startTime){
            $cost = number_format(microtime(true)*1000 - $startTime,2);
            if(strpos($token,":Time") === false){
                $token .= '['.$cost.'ms]';
            }else{
                $token = str_replace(":Time",'['.$cost.'ms]',$token);
            }
            if($params && strpos($token,":Params") !== false){
                $token = str_replace(":Params",'['.$params.']',$token);
            }
            Yii::log($token,CLogger::LEVEL_PROFILE,$category);
        }
    }

    public static function log($msg,$level=CLogger::LEVEL_INFO,$category='application'){
        if(strpos($msg,'Bound') > 0){
            $msg = self::getSqlLog($msg);
        }
        parent::log($msg,$level,$category);
    }

    public static function trace($msg,$category='application'){
        if(strpos($msg,'Bound') > 0){
            $msg = self::getSqlLog($msg);
        }
        parent::trace($msg,$category);
    }

    public static function getSqlLog($log){
        //Bound Var
        preg_match("/Bound with (.*?)[\)|\]]/",$log,$capture);
        $var_pair = explode(',',$capture[1]);
        $varArray = array();
        foreach($var_pair as $var){
            $array = explode('=',$var);
            $varArray[trim($array[0],': ')] = $array[1];
        }
        $replacePos = strpos($log,"Bound");
        $sqlLog = substr($log,0,$replacePos);
        foreach($varArray as $varKey => $varValue){
            $sqlLog = str_replace(':'.$varKey,$varValue,$sqlLog);
        }
        return $log;

        return $sqlLog;
    }
    private static $_coreClasses=array(
        'CApplication' => '/base/CApplication.php',
        'CApplicationComponent' => '/base/CApplicationComponent.php',
        'CBehavior' => '/base/CBehavior.php',
        'CComponent' => '/base/CComponent.php',
        'CErrorEvent' => '/base/CErrorEvent.php',
        'CErrorHandler' => '/base/CErrorHandler.php',
        'CException' => '/base/CException.php',
        'CExceptionEvent' => '/base/CExceptionEvent.php',
        'CHttpException' => '/base/CHttpException.php',
        'CModel' => '/base/CModel.php',
        'CModelBehavior' => '/base/CModelBehavior.php',
        'CModelEvent' => '/base/CModelEvent.php',
        'CModule' => '/base/CModule.php',
        'CSecurityManager' => '/base/CSecurityManager.php',
        'CStatePersister' => '/base/CStatePersister.php',
        'CApcCache' => '/caching/CApcCache.php',
        'CCache' => '/caching/CCache.php',
        'CDbCache' => '/caching/CDbCache.php',
        'CDummyCache' => '/caching/CDummyCache.php',
        'CEAcceleratorCache' => '/caching/CEAcceleratorCache.php',
        'CFileCache' => '/caching/CFileCache.php',
        'CMemCache' => '/caching/CMemCache.php',
        'CWinCache' => '/caching/CWinCache.php',
        'CXCache' => '/caching/CXCache.php',
        'CZendDataCache' => '/caching/CZendDataCache.php',
        'CCacheDependency' => '/caching/dependencies/CCacheDependency.php',
        'CChainedCacheDependency' => '/caching/dependencies/CChainedCacheDependency.php',
        'CDbCacheDependency' => '/caching/dependencies/CDbCacheDependency.php',
        'CDirectoryCacheDependency' => '/caching/dependencies/CDirectoryCacheDependency.php',
        'CExpressionDependency' => '/caching/dependencies/CExpressionDependency.php',
        'CFileCacheDependency' => '/caching/dependencies/CFileCacheDependency.php',
        'CGlobalStateCacheDependency' => '/caching/dependencies/CGlobalStateCacheDependency.php',
        'CAttributeCollection' => '/collections/CAttributeCollection.php',
        'CConfiguration' => '/collections/CConfiguration.php',
        'CList' => '/collections/CList.php',
        'CListIterator' => '/collections/CListIterator.php',
        'CMap' => '/collections/CMap.php',
        'CMapIterator' => '/collections/CMapIterator.php',
        'CQueue' => '/collections/CQueue.php',
        'CQueueIterator' => '/collections/CQueueIterator.php',
        'CStack' => '/collections/CStack.php',
        'CStackIterator' => '/collections/CStackIterator.php',
        'CTypedList' => '/collections/CTypedList.php',
        'CTypedMap' => '/collections/CTypedMap.php',
        'CConsoleApplication' => '/console/CConsoleApplication.php',
        'CConsoleCommand' => '/console/CConsoleCommand.php',
        'CConsoleCommandBehavior' => '/console/CConsoleCommandBehavior.php',
        'CConsoleCommandEvent' => '/console/CConsoleCommandEvent.php',
        'CConsoleCommandRunner' => '/console/CConsoleCommandRunner.php',
        'CHelpCommand' => '/console/CHelpCommand.php',
        'CDbCommand' => '/db/CDbCommand.php',
        'CDbConnection' => '/db/CDbConnection.php',
        'CDbDataReader' => '/db/CDbDataReader.php',
        'CDbException' => '/db/CDbException.php',
        'CDbMigration' => '/db/CDbMigration.php',
        'CDbTransaction' => '/db/CDbTransaction.php',
        'CActiveFinder' => '/db/ar/CActiveFinder.php',
        'CActiveRecord' => '/db/ar/CActiveRecord.php',
        'CActiveRecordBehavior' => '/db/ar/CActiveRecordBehavior.php',
        'CDbColumnSchema' => '/db/schema/CDbColumnSchema.php',
        'CDbCommandBuilder' => '/db/schema/CDbCommandBuilder.php',
        'CDbCriteria' => '/db/schema/CDbCriteria.php',
        'CDbExpression' => '/db/schema/CDbExpression.php',
        'CDbSchema' => '/db/schema/CDbSchema.php',
        'CDbTableSchema' => '/db/schema/CDbTableSchema.php',
        'CMssqlColumnSchema' => '/db/schema/mssql/CMssqlColumnSchema.php',
        'CMssqlCommandBuilder' => '/db/schema/mssql/CMssqlCommandBuilder.php',
        'CMssqlPdoAdapter' => '/db/schema/mssql/CMssqlPdoAdapter.php',
        'CMssqlSchema' => '/db/schema/mssql/CMssqlSchema.php',
        'CMssqlSqlsrvPdoAdapter' => '/db/schema/mssql/CMssqlSqlsrvPdoAdapter.php',
        'CMssqlTableSchema' => '/db/schema/mssql/CMssqlTableSchema.php',
        'CMysqlColumnSchema' => '/db/schema/mysql/CMysqlColumnSchema.php',
        'CMysqlCommandBuilder' => '/db/schema/mysql/CMysqlCommandBuilder.php',
        'CMysqlSchema' => '/db/schema/mysql/CMysqlSchema.php',
        'CMysqlTableSchema' => '/db/schema/mysql/CMysqlTableSchema.php',
        'COciColumnSchema' => '/db/schema/oci/COciColumnSchema.php',
        'COciCommandBuilder' => '/db/schema/oci/COciCommandBuilder.php',
        'COciSchema' => '/db/schema/oci/COciSchema.php',
        'COciTableSchema' => '/db/schema/oci/COciTableSchema.php',
        'CPgsqlColumnSchema' => '/db/schema/pgsql/CPgsqlColumnSchema.php',
        'CPgsqlSchema' => '/db/schema/pgsql/CPgsqlSchema.php',
        'CPgsqlTableSchema' => '/db/schema/pgsql/CPgsqlTableSchema.php',
        'CSqliteColumnSchema' => '/db/schema/sqlite/CSqliteColumnSchema.php',
        'CSqliteCommandBuilder' => '/db/schema/sqlite/CSqliteCommandBuilder.php',
        'CSqliteSchema' => '/db/schema/sqlite/CSqliteSchema.php',
        'CChoiceFormat' => '/i18n/CChoiceFormat.php',
        'CDateFormatter' => '/i18n/CDateFormatter.php',
        'CDbMessageSource' => '/i18n/CDbMessageSource.php',
        'CGettextMessageSource' => '/i18n/CGettextMessageSource.php',
        'CLocale' => '/i18n/CLocale.php',
        'CMessageSource' => '/i18n/CMessageSource.php',
        'CNumberFormatter' => '/i18n/CNumberFormatter.php',
        'CPhpMessageSource' => '/i18n/CPhpMessageSource.php',
        'CGettextFile' => '/i18n/gettext/CGettextFile.php',
        'CGettextMoFile' => '/i18n/gettext/CGettextMoFile.php',
        'CGettextPoFile' => '/i18n/gettext/CGettextPoFile.php',
        'CChainedLogFilter' => '/logging/CChainedLogFilter.php',
        'CDbLogRoute' => '/logging/CDbLogRoute.php',
        'CEmailLogRoute' => '/logging/CEmailLogRoute.php',
        'CFileLogRoute' => '/logging/CFileLogRoute.php',
        'CLogFilter' => '/logging/CLogFilter.php',
        'CLogRoute' => '/logging/CLogRoute.php',
        'CLogRouter' => '/logging/CLogRouter.php',
        'CLogger' => '/logging/CLogger.php',
        'CProfileLogRoute' => '/logging/CProfileLogRoute.php',
        'CWebLogRoute' => '/logging/CWebLogRoute.php',
        'CDateTimeParser' => '/utils/CDateTimeParser.php',
        'CFileHelper' => '/utils/CFileHelper.php',
        'CFormatter' => '/utils/CFormatter.php',
        'CMarkdownParser' => '/utils/CMarkdownParser.php',
        'CPropertyValue' => '/utils/CPropertyValue.php',
        'CTimestamp' => '/utils/CTimestamp.php',
        'CVarDumper' => '/utils/CVarDumper.php',
        'CBooleanValidator' => '/validators/CBooleanValidator.php',
        'CCaptchaValidator' => '/validators/CCaptchaValidator.php',
        'CCompareValidator' => '/validators/CCompareValidator.php',
        'CDateValidator' => '/validators/CDateValidator.php',
        'CDefaultValueValidator' => '/validators/CDefaultValueValidator.php',
        'CEmailValidator' => '/validators/CEmailValidator.php',
        'CExistValidator' => '/validators/CExistValidator.php',
        'CFileValidator' => '/validators/CFileValidator.php',
        'CFilterValidator' => '/validators/CFilterValidator.php',
        'CInlineValidator' => '/validators/CInlineValidator.php',
        'CNumberValidator' => '/validators/CNumberValidator.php',
        'CRangeValidator' => '/validators/CRangeValidator.php',
        'CRegularExpressionValidator' => '/validators/CRegularExpressionValidator.php',
        'CRequiredValidator' => '/validators/CRequiredValidator.php',
        'CSafeValidator' => '/validators/CSafeValidator.php',
        'CStringValidator' => '/validators/CStringValidator.php',
        'CTypeValidator' => '/validators/CTypeValidator.php',
        'CUniqueValidator' => '/validators/CUniqueValidator.php',
        'CUnsafeValidator' => '/validators/CUnsafeValidator.php',
        'CUrlValidator' => '/validators/CUrlValidator.php',
        'CValidator' => '/validators/CValidator.php',
        'CActiveDataProvider' => '/web/CActiveDataProvider.php',
        'CArrayDataProvider' => '/web/CArrayDataProvider.php',
        'CAssetManager' => '/web/CAssetManager.php',
        'CBaseController' => '/web/CBaseController.php',
        'CCacheHttpSession' => '/web/CCacheHttpSession.php',
        'CClientScript' => '/web/CClientScript.php',
        'CController' => '/web/CController.php',
        'CDataProvider' => '/web/CDataProvider.php',
        'CDataProviderIterator' => '/web/CDataProviderIterator.php',
        'CDbHttpSession' => '/web/CDbHttpSession.php',
        'CExtController' => '/web/CExtController.php',
        'CFormModel' => '/web/CFormModel.php',
        'CHttpCookie' => '/web/CHttpCookie.php',
        'CHttpRequest' => '/web/CHttpRequest.php',
        'CHttpSession' => '/web/CHttpSession.php',
        'CHttpSessionIterator' => '/web/CHttpSessionIterator.php',
        'COutputEvent' => '/web/COutputEvent.php',
        'CPagination' => '/web/CPagination.php',
        'CSort' => '/web/CSort.php',
        'CSqlDataProvider' => '/web/CSqlDataProvider.php',
        'CTheme' => '/web/CTheme.php',
        'CThemeManager' => '/web/CThemeManager.php',
        'CUploadedFile' => '/web/CUploadedFile.php',
        'CUrlManager' => '/web/CUrlManager.php',
        'CWebApplication' => '/web/CWebApplication.php',
        'CWebModule' => '/web/CWebModule.php',
        'CWidgetFactory' => '/web/CWidgetFactory.php',
        'CAction' => '/web/actions/CAction.php',
        'CInlineAction' => '/web/actions/CInlineAction.php',
        'CViewAction' => '/web/actions/CViewAction.php',
        'CAccessControlFilter' => '/web/auth/CAccessControlFilter.php',
        'CAuthAssignment' => '/web/auth/CAuthAssignment.php',
        'CAuthItem' => '/web/auth/CAuthItem.php',
        'CAuthManager' => '/web/auth/CAuthManager.php',
        'CBaseUserIdentity' => '/web/auth/CBaseUserIdentity.php',
        'CDbAuthManager' => '/web/auth/CDbAuthManager.php',
        'CPhpAuthManager' => '/web/auth/CPhpAuthManager.php',
        'CUserIdentity' => '/web/auth/CUserIdentity.php',
        'CWebUser' => '/web/auth/CWebUser.php',
        'CFilter' => '/web/filters/CFilter.php',
        'CFilterChain' => '/web/filters/CFilterChain.php',
        'CHttpCacheFilter' => '/web/filters/CHttpCacheFilter.php',
        'CInlineFilter' => '/web/filters/CInlineFilter.php',
        'CForm' => '/web/form/CForm.php',
        'CFormButtonElement' => '/web/form/CFormButtonElement.php',
        'CFormElement' => '/web/form/CFormElement.php',
        'CFormElementCollection' => '/web/form/CFormElementCollection.php',
        'CFormInputElement' => '/web/form/CFormInputElement.php',
        'CFormStringElement' => '/web/form/CFormStringElement.php',
        'CGoogleApi' => '/web/helpers/CGoogleApi.php',
        'CHtml' => '/web/helpers/CHtml.php',
        'CJSON' => '/web/helpers/CJSON.php',
        'CJavaScript' => '/web/helpers/CJavaScript.php',
        'CJavaScriptExpression' => '/web/helpers/CJavaScriptExpression.php',
        'CPradoViewRenderer' => '/web/renderers/CPradoViewRenderer.php',
        'CViewRenderer' => '/web/renderers/CViewRenderer.php',
        'CWebService' => '/web/services/CWebService.php',
        'CWebServiceAction' => '/web/services/CWebServiceAction.php',
        'CWsdlGenerator' => '/web/services/CWsdlGenerator.php',
        'CActiveForm' => '/web/widgets/CActiveForm.php',
        'CAutoComplete' => '/web/widgets/CAutoComplete.php',
        'CClipWidget' => '/web/widgets/CClipWidget.php',
        'CContentDecorator' => '/web/widgets/CContentDecorator.php',
        'CFilterWidget' => '/web/widgets/CFilterWidget.php',
        'CFlexWidget' => '/web/widgets/CFlexWidget.php',
        'CHtmlPurifier' => '/web/widgets/CHtmlPurifier.php',
        'CInputWidget' => '/web/widgets/CInputWidget.php',
        'CMarkdown' => '/web/widgets/CMarkdown.php',
        'CMaskedTextField' => '/web/widgets/CMaskedTextField.php',
        'CMultiFileUpload' => '/web/widgets/CMultiFileUpload.php',
        'COutputCache' => '/web/widgets/COutputCache.php',
        'COutputProcessor' => '/web/widgets/COutputProcessor.php',
        'CStarRating' => '/web/widgets/CStarRating.php',
        'CTabView' => '/web/widgets/CTabView.php',
        'CTextHighlighter' => '/web/widgets/CTextHighlighter.php',
        'CTreeView' => '/web/widgets/CTreeView.php',
        'CWidget' => '/web/widgets/CWidget.php',
        'CCaptcha' => '/web/widgets/captcha/CCaptcha.php',
        'CCaptchaAction' => '/web/widgets/captcha/CCaptchaAction.php',
        'CBasePager' => '/web/widgets/pagers/CBasePager.php',
        'CLinkPager' => '/web/widgets/pagers/CLinkPager.php',
        'CListPager' => '/web/widgets/pagers/CListPager.php',
    );
}
